<template>
  <div class="brand">
     <h4>{{ mytitle }}</h4>
    <ul>
      <li v-for="item in brandList" :key="item.id">
        <img :src="item.pic_url" alt="" />
        <span>{{ item.name }}</span>
        <p>{{ item.floor_price | formatMoney }}</p>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "",
  props: ["brandList"],
  data() {
    return {
      mytitle:'品牌制造商'
    };
  },

  components: {},

  computed: {},

  created() {},

  mounted() {},

  methods: {},
};
</script>
<style lang='less' scoped>
.brand ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  li {
    width: 49%;
    background: #fff;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    position: relative;
    img {
      display: block;
      width: 100%;
    }
    span{
      margin-top: 5px;
      position: absolute;
      top:0;
      left:5px;
      font-size: 16px;
    }
    p{
    position: absolute;
      top:20px;
      left:5px;
      font-size: 16px;
      margin-top: 5px;
      color: darkred;
    }
    
  }
}
h4  {
  text-align: center;
  height: 50px;
  line-height: 50px;
  font-size: 18px;
}
</style>